package cn.gson.work.model.pojos;

import javax.persistence.*;
import java.util.Collection;
import java.util.Objects;

@Entity
public class Category {
    private long cId;
    private String cName;
    private Collection<Project> projectsByCId;

    @Id
    @Column(name = "C_ID")
    public long getcId() {
        return cId;
    }

    public void setcId(long cId) {
        this.cId = cId;
    }


    @Basic
    @Column(name = "C_NAME")
    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    @OneToMany(mappedBy = "categoryList")

    public Collection<Project> getProjectsByCId() {
        return projectsByCId;
    }

    public void setProjectsByCId(Collection<Project> projectsByCId) {
        this.projectsByCId = projectsByCId;
    }
}
